package com.gxa.service;

import com.gxa.pojo.Role;
import com.gxa.pojo.User;

import java.util.List;
import java.util.Map;

public interface UserService {
    String findDepartmentNameById(Integer id);

    String findDutyNameById(Integer id);

    List<User> findUserByPage(Integer page, Integer size);

    Integer findAllUser();

    int insertUser(Map map);

    Integer deleteUserById(Integer id);

    Integer updateUser(Map map);

    Integer updateUserState(Map map);

    List<User> selectUserByNameAndUserName(Map map);

    List<User> selectUserByUserName(Map map);

    String findUserByUserName(String userName);

    String findUserByIdCard(String idCard);

    String findUserByPhone(String phone);

    User findRoleByUserId(Integer id);

    List<Role> findAllRole();

    Integer findAllUserBy(Map map);

    User login(String userName, String passwd);
}